<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php print $start_header ?>
<?php $cookie_name = 'screen_h'?>
<?php $h= ( get_cookie_sd($cookie_name) ?  (get_cookie_sd($cookie_name)-74).'px' : '500px');?>
<style>
	
	html, body{
		margin:0;
		padding:0;
	}
	#header{
		height:38px;
		padding-bottom:8px;
	}
	#nav_bar{
		height:28px;

	}
	#content_all{
		
		width:100%;
		height:<?=$h?>;
	}
	#side_lhs{

		left:0px;
		/*width:<?php //echo $_REQUEST['trType']=='direction' ? '350' : '260' ?>px;*/
		width:350px;
		position:absolute;
		clear:both;
	}
	#side_rhs{
		/*margin-left:246px;*/
	}
	#content{
		/*margin-left:<?php// echo $_REQUEST['trType']=='direction' ? '350' : '260' ?>px;*/
		margin-left:350px;
	}	
		
	#content_footer{
		width:100%;
		/*height:100%;*/
		clear:both;
	}
	
	#footer{
		width:100%
	}

</style>
<?php print $css?>
<?php print $js_header_scripts?>
</head>
<body <?=($this->config_app->body_no_scroll?'scroll="no"':'')?>>
	<div id="fb-root" style="z-index:999"></div>
	<?php print $js_top_scripts ?>
	<div id="header_nav">
		<div id="header"><?php print $header?></div>
		<div id="nav_bar"><?php print $nav_bar?></div>
	</div>
	<div id="content_all">
	    <div id="side_lhs"><?php print $lhs?></div>
	    <div id="side_rhs">
			<div id="content">
				<?php print $content?>
            </div>
		</div>
	    <div id="content_footer"><?php print $cfooter ?></div>
	</div>


<div id="upper_footer"><?php print $upper_footer?></div>
<div id="footer"><?php print $footer?></div>	
<?php print $js?>
<?php print $js_bottom_scripts ?>

</body>
</html>